package com.sangu.dianxiu.bean.order;

import java.io.Serializable;
import java.util.List;

/**
 * Created by sg2 on 2016/1/12.
 */
public class OrderDetailEntity implements Serializable{

    /**
     * rc : 0
     * order : {"orderNo":"A201601130001","isWarranty":false,"addTime":1452686178000,"orderTime":1452657379000,"status":1,"isComment":false,"items":[{"itemId":4,"itemName":"洗衣机异响"}],"addr":{"addrId":22,"cityId":1,"countyId":1,"addr":"中国浙江省杭州市滨江区东一路658","lon":120.208,"lat":30.1883},"contact":{"contactId":52,"name":"罗志磊 ","phone":"13867448136"},"desc":{"imgId1":80,"imgId2":80,"imgId3":80,"imgUrl1":"http://192.168.2.88:81/Controls/UploadFile/15/201601131956179214.jpeg","imgUrl2":"http://192.168.2.88:81/Controls/UploadFile/15/201601131956179174.jpeg","imgUrl3":"http://192.168.2.88:81/Controls/UploadFile/15/201601131956179244.jpeg","voiceId":78,"voiceUrl":"http://192.168.2.88:81/Controls/UploadFile/15/201601131956147712.amr","text":"测试19：56"},"repairer":{"code":null,"name":null,"phone":null,"star":0,"field":""}}
     */

    private int rc;
    /**
     * orderNo : A201601130001
     * isWarranty : false
     * addTime : 1452686178000
     * orderTime : 1452657379000
     * status : 1
     * isComment : false
     * items : [{"itemId":4,"itemName":"洗衣机异响"}]
     * addr : {"addrId":22,"cityId":1,"countyId":1,"addr":"中国浙江省杭州市滨江区东一路658","lon":120.208,"lat":30.1883}
     * contact : {"contactId":52,"name":"罗志磊 ","phone":"13867448136"}
     * desc : {"imgId1":80,"imgId2":80,"imgId3":80,"imgUrl1":"http://192.168.2.88:81/Controls/UploadFile/15/201601131956179214.jpeg","imgUrl2":"http://192.168.2.88:81/Controls/UploadFile/15/201601131956179174.jpeg","imgUrl3":"http://192.168.2.88:81/Controls/UploadFile/15/201601131956179244.jpeg","voiceId":78,"voiceUrl":"http://192.168.2.88:81/Controls/UploadFile/15/201601131956147712.amr","text":"测试19：56"}
     * repairer : {"code":null,"name":null,"phone":null,"star":0,"field":""}
     */

    private OrderEntity order;

    public void setRc(int rc) {
        this.rc = rc;
    }

    public void setOrder(OrderEntity order) {
        this.order = order;
    }

    public int getRc() {
        return rc;
    }

    public OrderEntity getOrder() {
        return order;
    }

    public static class OrderEntity {
        private String orderNo;
        private boolean isWarranty;
        private long addTime;
        private long orderTime;
        private int status;
        private boolean isComment;
        /**
         * addrId : 22
         * cityId : 1
         * countyId : 1
         * addr : 中国浙江省杭州市滨江区东一路658
         * lon : 120.208
         * lat : 30.1883
         */

        private AddrEntity addr;
        /**
         * contactId : 52
         * name : 罗志磊
         * phone : 13867448136
         */

        private ContactEntity contact;
        /**
         * imgId1 : 80
         * imgId2 : 80
         * imgId3 : 80
         * imgUrl1 : http://192.168.2.88:81/Controls/UploadFile/15/201601131956179214.jpeg
         * imgUrl2 : http://192.168.2.88:81/Controls/UploadFile/15/201601131956179174.jpeg
         * imgUrl3 : http://192.168.2.88:81/Controls/UploadFile/15/201601131956179244.jpeg
         * voiceId : 78
         * voiceUrl : http://192.168.2.88:81/Controls/UploadFile/15/201601131956147712.amr
         * text : 测试19：56
         */

        private DescEntity desc;
        /**
         * code : null
         * name : null
         * phone : null
         * star : 0
         * field :
         */

        private RepairerEntity repairer;
        /**
         * itemId : 4
         * itemName : 洗衣机异响
         */

        private List<ItemsEntity> items;

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public void setIsWarranty(boolean isWarranty) {
            this.isWarranty = isWarranty;
        }

        public void setAddTime(long addTime) {
            this.addTime = addTime;
        }

        public void setOrderTime(long orderTime) {
            this.orderTime = orderTime;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public void setIsComment(boolean isComment) {
            this.isComment = isComment;
        }

        public void setAddr(AddrEntity addr) {
            this.addr = addr;
        }

        public void setContact(ContactEntity contact) {
            this.contact = contact;
        }

        public void setDesc(DescEntity desc) {
            this.desc = desc;
        }

        public void setRepairer(RepairerEntity repairer) {
            this.repairer = repairer;
        }

        public void setItems(List<ItemsEntity> items) {
            this.items = items;
        }

        public String getOrderNo() {
            return orderNo;
        }

        public boolean isIsWarranty() {
            return isWarranty;
        }

        public long getAddTime() {
            return addTime;
        }

        public long getOrderTime() {
            return orderTime;
        }

        public int getStatus() {
            return status;
        }

        public boolean isIsComment() {
            return isComment;
        }

        public AddrEntity getAddr() {
            return addr;
        }

        public ContactEntity getContact() {
            return contact;
        }

        public DescEntity getDesc() {
            return desc;
        }

        public RepairerEntity getRepairer() {
            return repairer;
        }

        public List<ItemsEntity> getItems() {
            return items;
        }

        public static class AddrEntity {
            private int addrId;
            private int cityId;
            private int countyId;
            private String addr;
            private double lon;
            private double lat;

            public void setAddrId(int addrId) {
                this.addrId = addrId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public void setCountyId(int countyId) {
                this.countyId = countyId;
            }

            public void setAddr(String addr) {
                this.addr = addr;
            }

            public void setLon(double lon) {
                this.lon = lon;
            }

            public void setLat(double lat) {
                this.lat = lat;
            }

            public int getAddrId() {
                return addrId;
            }

            public int getCityId() {
                return cityId;
            }

            public int getCountyId() {
                return countyId;
            }

            public String getAddr() {
                return addr;
            }

            public double getLon() {
                return lon;
            }

            public double getLat() {
                return lat;
            }
        }

        public static class ContactEntity {
            private int contactId;
            private String name;
            private String phone;

            public void setContactId(int contactId) {
                this.contactId = contactId;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getContactId() {
                return contactId;
            }

            public String getName() {
                return name;
            }

            public String getPhone() {
                return phone;
            }
        }

        public static class DescEntity {
            private int imgId1;
            private int imgId2;
            private int imgId3;
            private String imgUrl1;
            private String imgUrl2;
            private String imgUrl3;
            private int voiceId;
            private String voiceUrl;
            private String text;

            public void setImgId1(int imgId1) {
                this.imgId1 = imgId1;
            }

            public void setImgId2(int imgId2) {
                this.imgId2 = imgId2;
            }

            public void setImgId3(int imgId3) {
                this.imgId3 = imgId3;
            }

            public void setImgUrl1(String imgUrl1) {
                this.imgUrl1 = imgUrl1;
            }

            public void setImgUrl2(String imgUrl2) {
                this.imgUrl2 = imgUrl2;
            }

            public void setImgUrl3(String imgUrl3) {
                this.imgUrl3 = imgUrl3;
            }

            public void setVoiceId(int voiceId) {
                this.voiceId = voiceId;
            }

            public void setVoiceUrl(String voiceUrl) {
                this.voiceUrl = voiceUrl;
            }

            public void setText(String text) {
                this.text = text;
            }

            public int getImgId1() {
                return imgId1;
            }

            public int getImgId2() {
                return imgId2;
            }

            public int getImgId3() {
                return imgId3;
            }

            public String getImgUrl1() {
                return imgUrl1;
            }

            public String getImgUrl2() {
                return imgUrl2;
            }

            public String getImgUrl3() {
                return imgUrl3;
            }

            public int getVoiceId() {
                return voiceId;
            }

            public String getVoiceUrl() {
                return voiceUrl;
            }

            public String getText() {
                return text;
            }
        }

        public static class RepairerEntity {
            private Object code;
            private Object name;
            private Object phone;
            private int star;
            private String field;

            public void setCode(Object code) {
                this.code = code;
            }

            public void setName(Object name) {
                this.name = name;
            }

            public void setPhone(Object phone) {
                this.phone = phone;
            }

            public void setStar(int star) {
                this.star = star;
            }

            public void setField(String field) {
                this.field = field;
            }

            public Object getCode() {
                return code;
            }

            public Object getName() {
                return name;
            }

            public Object getPhone() {
                return phone;
            }

            public int getStar() {
                return star;
            }

            public String getField() {
                return field;
            }
        }

        public static class ItemsEntity {
            private int itemId;
            private String itemName;

            public void setItemId(int itemId) {
                this.itemId = itemId;
            }

            public void setItemName(String itemName) {
                this.itemName = itemName;
            }

            public int getItemId() {
                return itemId;
            }

            public String getItemName() {
                return itemName;
            }
        }
    }
}
